<%--
  User: sam
  Date: 2019/1/21
  Time: 10:10
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>显示项目详情</title>
    <style>
        div {
            width: 500px;
            margin: 0 auto;
        }

        table {
            width: 100%;
        }

        table tr:first-child, tr:last-child td {
            text-align: center;
        }

    </style>
</head>
<body>
<div>
    <form action="${pageContext.request.contextPath}/modifyStatus">
        <table border="1">
            <tr>
                <td colspan="2">项目申报信息</td>
            </tr>
            <tr>
                <td>项目编号</td>
                <td>${projectInfo.id}
                    <input type="hidden" name="id" value="${projectInfo.id}">
                </td>
            </tr>
            <tr>
                <td>项目名称</td>
                <td>${projectInfo.projectName}</td>
            </tr>
            <tr>
                <td>项目开始时间</td>
                <td><fmt:formatDate value="${projectInfo.startDate}" pattern="yyyy-MM-dd"/></td>
            </tr>
            <tr>
                <td>项目结束时间</td>
                <td><fmt:formatDate value="${projectInfo.endDate}" pattern="yyyy-MM-dd"/></td>
            </tr>

            <tr>
                <td>申报状态</td>
                <td>
                    <select name="status">
                        <option value="0" ${projectInfo.status==0?"selected":""}>已申报</option>
                        <option value="1" ${projectInfo.status==1?"selected":""}>审核中</option>
                        <option value="2" ${projectInfo.status==2?"selected":""}>已审核</option>
                    </select>
                </td>
            </tr>

            <tr>
                <td colspan="2">
                    <input type="submit" value="审核">
                    <input type="button" onclick="history.back();" value="返回">
                </td>
            </tr>
        </table>

    </form>

</div>
</body>
</html>
